
#include "tcpserver.h"
#include "tcpserver_impl.h"
#include "messagehandler.h"

TcpServer::TcpServer(boost::asio::io_context& io_context, const boost::asio::ip::tcp::endpoint& listen_endpoint, 
    std::map<std::string, int>& messageType, ServerConfig_t& cfg, MessageHandlerBase* messageHandler)
    :_pImpl(new TcpServerImpl(io_context, listen_endpoint, messageType, cfg, messageHandler))
{
}

TcpServer::~TcpServer()
{
    delete _pImpl;
}

